<template>
  <el-input-number v-model="num" @change="handleChange" :min="1" :max="9" label="描述文字"></el-input-number>
</template>

<script>
export default {
  data() {
    return {
      num: 1
    }
  },
  methods: {
    // 绑定值被改变时触发
    handleChange(currentValue,oldValue) {
      // console.log(currentValue,oldValue);
      this.$store.commit('cgecount',currentValue)
    }
  }
};
</script>